<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>My Project: Terrain结构体 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>函数</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>变量</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a>  </div>
  <div class="headertitle">
<div class="title">Terrain结构体 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>地形配置,来主导生成地形。  
 <a href="struct_terrain.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="engine__terrain_8h_source.html">engine_terrain.h</a>&gt;</code></p>

<p><a href="struct_terrain-members.html">所有成员列表.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:aa77e28b4a4fb77f10378a6b1443f28ff"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_terrain.html#aa77e28b4a4fb77f10378a6b1443f28ff">Terrain</a> (int _NumRow, int _NumCol, float scaleY, float cell_size, float HeightOffset=0)</td></tr>
<tr class="memdesc:aa77e28b4a4fb77f10378a6b1443f28ff"><td class="mdescLeft">&#160;</td><td class="mdescRight">要保证地形width,depth是2的倍数.  <a href="#aa77e28b4a4fb77f10378a6b1443f28ff"></a><br/></td></tr>
<tr class="memitem:a9fc10d3ad8905ba8a7cc6527ca4a6ed9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9fc10d3ad8905ba8a7cc6527ca4a6ed9"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (int _NumRow, int _NumCol, float scale, float cell_size, float HeightOffset)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a19d19c4d9a1c88fb0c06f0076207413d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a19d19c4d9a1c88fb0c06f0076207413d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>num_vertex_per_row</b></td></tr>
<tr class="memitem:ad0fdbadac7baef92925e98529390a16f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad0fdbadac7baef92925e98529390a16f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>num_vertex_per_col</b></td></tr>
<tr class="memitem:acbb8aafbdef42e33c3b163d274499fbc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbb8aafbdef42e33c3b163d274499fbc"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>num_cell_per_row</b></td></tr>
<tr class="memitem:ad76c7067f01b26fd470e8722c8ecaeb0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad76c7067f01b26fd470e8722c8ecaeb0"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>num_cell_per_col</b></td></tr>
<tr class="memitem:af128006fd98dfac344a8920e184a45c1"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af128006fd98dfac344a8920e184a45c1"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>width</b></td></tr>
<tr class="memitem:aaf87db9624a86aac3ebeda4aa724f7f2"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aaf87db9624a86aac3ebeda4aa724f7f2"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>depth</b></td></tr>
<tr class="memitem:a64897b338f86f1b7e9924cf3db0a1fc7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a64897b338f86f1b7e9924cf3db0a1fc7"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>height_scale</b></td></tr>
<tr class="memitem:acbdea89214d01742a72463d397ff61ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acbdea89214d01742a72463d397ff61ae"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>cell_space</b></td></tr>
<tr class="memitem:adf2a53551974b44fa644891f6b255fcc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adf2a53551974b44fa644891f6b255fcc"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>num_triangle</b></td></tr>
<tr class="memitem:a517c224835ff8fa7dc4a1ccf5b503bf7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a517c224835ff8fa7dc4a1ccf5b503bf7"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>num_vertex</b></td></tr>
<tr class="memitem:a2f0ca378386dd4c54027a36834599040"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a2f0ca378386dd4c54027a36834599040"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>NumRow</b></td></tr>
<tr class="memitem:a80bb675e89dca508afd527580354c05f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a80bb675e89dca508afd527580354c05f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>NumCol</b></td></tr>
<tr class="memitem:a712a34318eecbce0eef3dcfb40b93fe6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a712a34318eecbce0eef3dcfb40b93fe6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>NumCellRow</b></td></tr>
<tr class="memitem:ae5c151d3d6fd9bba4ef2658daa1de0a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae5c151d3d6fd9bba4ef2658daa1de0a6"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>NumCellCol</b></td></tr>
<tr class="memitem:ab5634c910039dd548dc0b415dde37865"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab5634c910039dd548dc0b415dde37865"></a>
float&#160;</td><td class="memItemRight" valign="bottom"><b>Height_Offset</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>详细描述</h2>
<div class="textblock"><p>地形配置,来主导生成地形。 </p>
</div><hr/><h2>构造及析构函数说明</h2>
<a class="anchor" id="aa77e28b4a4fb77f10378a6b1443f28ff"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Terrain::Terrain </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_NumRow</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>_NumCol</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>scaleY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>cell_size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>HeightOffset</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>要保证地形width,depth是2的倍数. </p>
<p>如果Cell_size是1的话，v_per_row,v_per_col必须是2n+1; </p>
<dl class="params"><dt>参数:</dt><dd>
  <table class="params">
    <tr><td class="paramname">_NumRow,:</td><td>y坐标 </td></tr>
    <tr><td class="paramname">_NumCol,:</td><td>x坐标 </td></tr>
    <tr><td class="paramname">ScaleY,:</td><td>缩放Y </td></tr>
    <tr><td class="paramname">cell_size间距大小。</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section remark"><dt>备注:</dt><dd>内部调用init(); </dd></dl>

</div>
</div>
<hr/>该结构体的文档由以下文件生成:<ul>
<li>E:/!代码工厂/3D引擎/<a class="el" href="engine__terrain_8h_source.html">engine_terrain.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2012年 五月 27日 星期日 22:27:19 , 为 My Project使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1
</small></address>
</body>
</html>
